﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Models
{
    [Table("DeviceInfo")]
    public class DeviceInfo
    {
        [Key]
        public int DeviceId { get; set; }//Int AUTO_INCREMENT PRIMARY KEY 设备Id（全局唯一）
        public string? CompanyNo { get; set; }//Varchar(50) FK:公司代码
        public string? CommNo { get; set; }//Varchar(50) 通讯号
        public string? BarCode { get; set; }//Varchar(50) 条码号
        public int? DeviceTypeId { get; set; }//int FK:设备类型Id
        public string? FactoryNo { get; set; }//Varchar(50) FK：设备厂家编号
        public int? AlarmON { get; set; }//int 报警开关0-关1-开

        public string? CustomerName { get; set; }//Varchar(50) 客户名称
        public string? Address { get; set; }//Varchar(50) 安装地址
        public string? MobileNo { get; set; }//Varchar(50) 客户电话
        public string? DefineNo1 { get; set; }//Varchar(50) 自定义编号1
        public string? DefineNo2 { get; set; }//Varchar(50) 自定义编号2
        public string? Remark1 { get; set; }//Varchar(1000)   备注1
        public string? Remark2 { get; set; }//Varchar(1000)   备注2
        public string? ExtData { get; set; }//json 扩展数据


        public DateTime? BuildTime { get; set; }//Datetime    建档时间
        public DateTime? EditTime { get; set; }//Datetime 最后编辑时间
        public string? Operator { get; set; }//Varchar(50) 操作员名称
    }
}
